package com.ql.gamelogm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IfchangeController {
    @RequestMapping(value = "/calendar.html")
    @ResponseBody
    public ModelAndView changeToCalendar(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("calendar");
        return modelAndView;
    }

    @RequestMapping(value = "/emailinbox.html")
    @ResponseBody
    public ModelAndView changeToEmail1(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("emailinbox");
        return modelAndView;
    }
    @RequestMapping(value = "/Emailcheck.html")
    @ResponseBody
    public ModelAndView changeToEmailCheck(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("Emailcheck");
        return modelAndView;
    }

    @RequestMapping(value = "/emailsended.html")
    @ResponseBody
    public ModelAndView changeToEmail2(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("emailsended");
        return modelAndView;
    }

    @RequestMapping(value = "/emaildeleted.html")
    @ResponseBody
    public ModelAndView changeToEmail3(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("emaildeleted");
        return modelAndView;
    }

    @RequestMapping(value = "/index.html")
    @ResponseBody
    public ModelAndView changeToIndex(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("index");
        return modelAndView;
    }

    @RequestMapping(value = "/LogCatch.html")
    @ResponseBody
    public ModelAndView changeTologCatch(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("LogCatch");
        return modelAndView;
    }

    @RequestMapping(value = "/LogAnalysis.html")
    @ResponseBody
    public ModelAndView changeToLogAnalysis(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("LogAnalysis");
        return modelAndView;
    }

    @RequestMapping(value = "/LogWarn.html")
    @ResponseBody
    public ModelAndView changeToLogWarn(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("LogWarn");
        return modelAndView;
    }

    @RequestMapping(value = "/SysRight.html")
    @ResponseBody
    public ModelAndView changeToSysRight(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("SysRight");
        return modelAndView;
    }

    @RequestMapping(value = "/PersRight.html")
    @ResponseBody
    public ModelAndView changeToPersRight(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("PersRight");
        return modelAndView;
    }

    @RequestMapping(value = "/UserPro.html")
    @ResponseBody
    public ModelAndView changeToUserPro(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("UserPro");
        return modelAndView;
    }

    @RequestMapping(value = "/UserOplog.html")
    @ResponseBody
    public ModelAndView changeToUserOplog(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("UserOplog");
        return modelAndView;
    }
    @RequestMapping(value = "/UserSecure.html")
    @ResponseBody
    public ModelAndView changeToUserSecure(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("UserSecure");
        return modelAndView;
    }

   /* @RequestMapping("/findAllMailsDeleted/content")
    @ResponseBody
    public ModelAndView ShowContent(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("emaildeleted");
        return modelAndView;
    }
    @RequestMapping("/findAllMailsInBox/content")
    @ResponseBody
    public ModelAndView ShowContent1(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("emailinbox");
        return modelAndView;
    }
    @RequestMapping("/findAllMailsSended/content")
    @ResponseBody
    public ModelAndView ShowContent2(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("emailsended");
        return modelAndView;
    }
    @GetMapping("/findAllMailsInBox/index.html")
    public String ShowContent3(){
        return "redirect:/index";
    }*/
}
